Consider all targets for platform requirements
authorAlex Crichton <alex@alexcrichton.com>
Thu, 29 Jan 2015 06:28:31 +0000 (22:28 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 29 Jan 2015 19:20:11 +0000 (11:20 -0800)
commit175693a2e1268a3c3654cdca62d0ec00ec2f00f1
tree0d9a995414ed8bb901ac5d4db842eb0971a105d4
parent453ae9f268c7e41c25012514eb5c502a3711e480
Consider all targets for platform requirements

Previously a build script would assign itself to the platform requirement for
the first target of a package, but it's more correct to consider all targets for
platform requirements as there may be both a plugin and target requirement.

Closes #1230
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_compile_plugins.rs
tests/test_cargo_cross_compile.rs